<div class="signin" ng-controller="signinCtrl">
  <div class="signin-head">
    <img src="/static/img/head_120.png" class="img-circle" />
  </div>
  <form name="myForm" ng-submit="submitForm()" class="form-horizontal mform" novalidate >
    <div ng-show="myForm.email.$dirty &amp;&amp; myForm.email.$invalid">
      <span class="alert alert-danger" ng-show="myForm.email.$error.required">邮箱不能为空！</span>
      <span class="alert alert-danger" ng-show="myForm.email.$error.email">邮箱格式有误！</span>
    </div>
    <div class="form-group">
      <div class="col-sm-9" ng-class="{'has-error':myForm.email.$invalid && myForm.email.$dirty}">
        <input type="email" class="form-control" placeholder="邮箱地址" required="required" ng-model="userdata.email" name="email" />
      </div>
    </div>
    <div ng-show="myForm.pass.$dirty &amp;&amp; myForm.pass.$invalid">
      <span class="alert alert-danger" ng-show="myForm.pass.$error.required">密码不能为空！</span>
      <span class="alert alert-danger" ng-show="myForm.pass.$error.minlength || myForm.pass.$error.maxlength">密码长度应在6到30位之间！</span>
    </div>
    <div class="form-group">
      <div class="col-sm-9" ng-class="{'has-error':myForm.pass.$invalid && myForm.pass.$dirty}">
        <input name="pass" ng-model="userdata.pass" type="password" class="form-control" placeholder="密码" required="required" ng-minlength="6" ng-maxlength="30" />
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-3">
        <div class="checkbox">
          <label>
            <input type="checkbox" />
            记住我
          </label>
        </div>
      </div>
      <div class="col-sm-3 col-sm-offset-3">
        <div class="checkbox">
          <a href="#">忘记密码?</a>
        </div>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-9">
        <button type="submit" class="btn btn-info btn-block" ng-disabled="myForm.$invalid" >登陆</button>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-5 col-sm-offset-2">
        <a href="#" ui-sref="/register">还没账户，马上注册</a>
      </div>
    </div>
  </form>
</div>